package com.jxw.launcher.util;

import android.content.Context;
import android.content.Intent;
import android.os.Build;

/* loaded from: classes.dex */
public class IflytekUtil {
    public static boolean isRun = false;

    public static void startiflytek(Context context, String str) {
        if (Build.VERSION.SDK_INT >= 26) {
            Intent intent = new Intent();
            intent.setClassName("com.iflytek.cyber.iot.show.core", "com.iflytek.cyber.iot.show.core.EngineService");
            intent.setAction("com.iflytek.cyber.iot.show.core.action.SEND_TEXT_IN");
            intent.putExtra("query", str);
            context.startForegroundService(intent);
            return;
        }
        Intent intent2 = new Intent();
        intent2.setClassName("com.iflytek.cyber.iot.show.core", "com.iflytek.cyber.iot.show.core.EngineService");
        intent2.setAction("com.iflytek.cyber.iot.show.core.action.SEND_TEXT_IN");
        intent2.putExtra("query", str);
        context.startService(intent2);
    }
}
